package com.service;

import java.util.List;

import com.dao.IdealCommentDao;
import com.entity.IdealComment;

public class IdealCommentService {

	IdealCommentDao dao=new IdealCommentDao();

	public List<IdealComment> getAll() {
		return dao.getAll();
	}

	public void add(IdealComment idealComment) {
		dao.add(idealComment);
	}

	public List<IdealComment> getByIdealId(String idealId) {
		return dao.getByIdealId(idealId);
	}

	public void delById(String id) {
		
		 dao.delById(id);
	}

	public IdealComment getById(String id) {
		return dao.getById(id);
	}

	public void delByICId(String id) {
		dao.delByICId(id);
	}
	
}
